package com.hoshiibuy.customerOperation.entity.vo;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 平台商品评价
 * </p>
 *
 * @author Mr.Wu
 * @since 2019-04-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "ReviewsVO对象", description = "平台商品评价")
public class ReviewsVO implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "主键")
	@TableId("id")
	private Long id;

	@ApiModelProperty(value = "平台id")
	@TableField("platform_id")
	private Long platformId;

	@ApiModelProperty(value = "平台用户ID")
	@TableField("user_id")
	private Long userId;

	@ApiModelProperty(value = "订单ID")
	@TableField("orderid")
	private Long orderid;

	@ApiModelProperty(value = "平台SPUID")
	@TableField("platform_spu_id")
	private Long platformSpuId;

	@ApiModelProperty(value = "平台SKUID")
	@TableField("platform_sku_id")
	private Long platformSkuId;

	@ApiModelProperty(value = "商品评分 1-5个星")
	@TableField("stars")
	private Integer stars;

	@ApiModelProperty(value = "评论内容")
	@TableField("contexts")
	private String contexts;

	@ApiModelProperty(value = "是否匿名评价")
	@TableField("is_anonymous")
	private Integer isAnonymous;

	@ApiModelProperty(value = "是否已经屏蔽或删除")
	@TableField("deleted")
	private Integer deleted;

	@ApiModelProperty(value = "评价时间")
	@TableField("createdtime")
	private LocalDateTime createdtime;

}
